package com.beesphere.excel.reader;

import java.io.Serializable;

public class SheetConfig implements Serializable {

	private static final long serialVersionUID = -8520600617387311982L;
	
	private boolean skip;
	private boolean withHeader;
	private int[] columnsIndexes;
	
	public SheetConfig () {
	}
	
	public SheetConfig (boolean skip, boolean withHeader, int [] columnsIndexes) {
		set (skip, withHeader, columnsIndexes);
	}
	
	public void set (boolean skip, boolean withHeader, int [] columnsIndexes) {
		clean ();
		this.skip = skip;
		this.withHeader = withHeader;
		this.columnsIndexes = columnsIndexes;
	}
	
	public void clean () {
		this.skip = false;
		this.withHeader = false;
		this.columnsIndexes = null;
	}
	
	public boolean isSkip() {
		return skip;
	}
	public void setSkip(boolean skip) {
		this.skip = skip;
	}
	public boolean isWithHeader() {
		return withHeader;
	}
	public void setWithHeader(boolean withHeader) {
		this.withHeader = withHeader;
	}
	public int[] getColumnsIndexes() {
		return columnsIndexes;
	}
	public void setColumnsIndexes(int[] columnsIndexes) {
		this.columnsIndexes = columnsIndexes;
	}

}
